﻿using Alos.Entity;
using Alos.IRepository;
using PetaPoco;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Alos.Repository
{
    public class ResourceWhiteboardRepository : BaseRepository<ResourceWhiteboard>, IResourceWhiteboardRepository
    {
        public IEnumerable<dynamic> GetResourceWhiteboardByResouceId(int id)
        {
            var sql = Sql.Builder.Append(@"select * from ResourceWhiteboard where ResourceID = @0", id);

            return DBContext.Query<dynamic>(sql);
        }
    }
}
